package cn.kgc.ssmmodulardemo.entity.vo;

import lombok.Data;


import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * 面向用户添加的视图对象
 */
@Data
public class AddUserVO {
    @NotNull(message = "用户名不能为空")
    private String userName;
    @NotNull(message = "密码不能为空")
    private String userPassword;
    @Min(value = 16,message = "最小值是16")
    private Integer age;
    @Pattern(regexp = "^1[34578]\\d{9}$", message = "请输入正确的手机号")
    private String phone;
    @NotNull(message = "地址不能为空")
    private String address;


}
